using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace Pbdms.NetworkDealer.EventArgs
{
    /// <summary>
    /// define an event argument passed when a SearchRequestReceived event is triggered
    /// </summary>
    public class SearchRequestReceivedEventArgs: System.EventArgs 
    {
        private readonly Pbdms.NetworkDealer.Requests.SearchRequest srq;

        /// <summary>
        /// get the search request object
        /// </summary>
        public Pbdms.NetworkDealer.Requests.SearchRequest SearchRequestObj
        {
            get { return srq; }
        }

        /// <summary>
        /// create an instance
        /// </summary>
        /// <param name="searchRequestObject"></param>
        public SearchRequestReceivedEventArgs(Pbdms.NetworkDealer.Requests.SearchRequest searchRequestObject)
        {
            this.srq = searchRequestObject;

        }
    }
}
